package com.coldtech.circlecrash;

import java.awt.Dimension;

import javax.swing.JApplet;
import javax.swing.SwingUtilities;

public class Applet extends JApplet {
	private static final long serialVersionUID = 1L;
	public static Dimension size;

	public void init() {
		size = this.getSize();
		try {
			SwingUtilities.invokeAndWait(new Runnable() {
				public void run() {
					CircleCrash game = new CircleCrash();
					add(game);
					game.start();
				}
			});
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public void resize() {
		size = this.getSize();
	}
}